import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';

class StaffLoginViewState implements Cloneable<StaffLoginViewState> {
  TextEditingController phoneController = TextEditingController();
  TextEditingController passwordController = TextEditingController();
  TextEditingController roleController = TextEditingController();

  @override
  StaffLoginViewState clone() {
    return StaffLoginViewState()
      ..phoneController = phoneController
      ..passwordController = passwordController
      ..roleController = roleController;
  }
}

StaffLoginViewState initState(Map<String, dynamic> args) {
  return StaffLoginViewState()
    ..phoneController.text = args['phone']
    ..roleController.text = args['roleName']
    ..passwordController.text = args['password'];
}
